﻿/*
 Allshop
 */
var z = "#fEffect/ItemEff/1112811/0/0#";//"+z+"//美化
var aaa = "#fUI/UIWindow/AriantMatch/characterIcon/5#";
var yun = "#fUI/UIWindow/Megaphone/2#";////红沙漏
var yun2 = "#fUI/UIWindow/Quest/icon8/0#";////蓝指标
var yun8 = "#fUI/UIWindow/MonsterBook/arrowLeft/normal/0#";////金左指标
var yun9 = "#fUI/UIWindow/MonsterBook/arrowRight/normal/0#";////金右指标
var yun4 = "#fUI/UIWindow/Quest/reward#";////奖励
var ttt = "#fUI/UIWindow/Quest/icon2/7#";//"+ttt+"//美化1
var ttt2 = "#fUI/UIWindow/Quest/icon6/7#";////美化2
var ttt3 = "#fUI/UIWindow/Quest/icon3/6#";//"+ttt3+"//美化圆
var ttt4 = "#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var ttt5 = "#fUI/UIWindow/Quest/icon0#";////美化!
var ttt7 = "#fUI/Basic/BtHide3/mouseOver/0#";//"+ttt6+"//美化会员
var ttt6 = "#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var epp = "#fEffect/CharacterEff/1082312/0/0#";  //彩光
var eff = "#fCharacter/Weapon/01702523.img/48/straight/0/effect#"; //彩虹带
var eff = "#fEffect/CharacterEff/1112905/0/1#"; //
var epp = "#fEffect/CharacterEff/1082312/0/0#";  //彩光
var epp1 = "#fEffect/CharacterEff/1082312/2/0#"; //彩光1
var axx = "#fEffect/CharacterEff/1051294/0/0#";  //爱心
var xxx = "#fEffect/CharacterEff/1082565/2/0#"; //星系
var ppp = "#fEffect/CharacterEff/1112907/4/0#"; //泡炮 
var epp3 = "#fEffect/CharacterEff/1112908/0/1#";  //彩光3
var axx1 = "#fEffect/CharacterEff/1062114/1/0#";  //爱心
var zs = "#fEffect/CharacterEff/1112946/2/0#";  //砖石粉
var zs1 = "#fEffect/CharacterEff/1112946/1/1#";  //砖石蓝
var dxxx = "#fEffect/CharacterEff/1102232/2/0#"; //星系
var tz = "#fEffect/CharacterEff/1082565/2/0#";  //兔子蓝
var tz1 = "#fEffect/CharacterEff/1082565/4/0#";  //兔子粉
var tz7 = "#fEffect/CharacterEff/1112900/3/1#";  //音符红
var tz8 = "#fEffect/CharacterEff/1112900/4/1#";  //音符绿
var tz88 = "#fEffect/CharacterEff/1112900/5/1#";  //音符绿!
var yun1 = "#fUI/UIWindow/Quest/icon7/10#";////红色圆
var tz9 = "#fEffect/CharacterEff/1112902/0/0#";  //蓝心
var tz10 = "#fEffect/CharacterEff/1112903/0/0#";  //红心
var tz11 = "#fEffect/CharacterEff/1112904/0/0#";  //彩心
var tz12 = "#fEffect/CharacterEff/1112924/0/0#";  //黄星
var tz13 = "#fEffect/CharacterEff/1112925/0/0#";  //蓝星
var tz14 = "#fEffect/CharacterEff/1112926/0/0#";  //红星
var tz15 = "#fEffect/CharacterEff/1112949/0/0#";  //花样音符
var tz16 = "#fEffect/CharacterEff/1112949/1/0#";  //花样音符
var tz17 = "#fEffect/CharacterEff/1112949/2/0#";  //花样音符
var tz18 = "#fEffect/CharacterEff/1112949/3/0#";  //花样音符
var tz19 = "#fEffect/CharacterEff/1112949/4/0#";  //花样音符
var tz20 = "#fEffect/CharacterEff/1114000/1/0#";  //红星花
var hhh1 ="#fEffect/CharacterEff/1112905/0/1#";//爱心
var b1= "#v4310143#";//BOSS币
var b2= "#v4000313#";//黄金枫叶
var b3= "#v4310100#";//凯梅尔兹金币
var b4= "#v4001759#";//定居金100万金币
var b5= "#v4000463#";//国庆纪念币
var b6= "#v4310088#";//RED币
var b7= "#v4310020#";//怪物公园纪念币
var b8= "#v4310059#";//影子商团币
var b9= "#v4310156#";//埃苏莱布斯币
var b10= "#v4310036#";//征服者币
var b11= "#v4032766#";//黑币
var b12= "#v4310097#";//贝勒德币
var b13= "#v4310065#";//世界树符文石
var b14= "#v4001620#";//武公的证物
var b15= "#v4310224#";//组队点数
var b16= "#v4000814#";//抵用券
var b17= "#v1352606#";//副手
var b18= "#v4033115#";//黑魔法师的证物
var b19= "#v4310210#";//V币
var b20= "#v4001713#";//金币
var b21= "#v4310098#";//低级贝勒

var a = 0;
function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
            var selStr = "#r" + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + z + "\r\n#e#d　　　　　　　  　购物中心#n#k\r\n";
		selStr +="#b#L100#"+b2+"[点劵商铺]"+"#k#L101#"+b16+"[抵用商铺]"+"#r#L10086#"+b5+" [中介转换]#l#n\r\n"; 
                selStr +="#b#L25#"+b19+"[V币商铺]"+"#k#L26#"+b20+"[Buff商铺]"+"#r#L27#"+b21+"[低贝商店]#l#n\r\n";       
                selStr +="#b#L3#"+b1+"[BOSS商店]"+"#k#L0#"+b4+"[杂货商铺]"+"#r#L1#"+b6+"[RED商店]#l#n\r\n";
                selStr +="#b#L2#"+b7+"[怪物公园]"+"#k#L4#"+b10+"[征服商店]"+"#r#L5#"+b17+"[副手商铺]#l#n\r\n";      
                selStr +="#b#L10#"+b11+"[黑币商铺]"+"#k#L16#"+b8+"[暴君商店]"+"#r#L11#"+b3+"[漩涡商店]#l#n\r\n";
                selStr +="#b#L9#"+b15+"[组队点数]"+"#k#L20#"+b9+"[AS商铺] "+"#r#L21#"+b13+"[FFN商铺]#l#n\r\n";       
                selStr +="#b#L22#"+b12+"[贝勒商店]"+"#k#L23#"+b14+"[武陵商铺]"+"#r#L24#"+b18+"[TMN商店]#l#n\r\n";
;
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {

        case 20://AS商店
            cm.dispose();
            cm.openShop(328);
            //cm.openNpc(9201100);
            break;
        case 21://鲁塔比斯商店
            cm.dispose();
            cm.openShop(62);
            //cm.openNpc(1011101);
            break;
        case 22://贝勒商店
            cm.dispose();
            cm.openShop(58);
            //cm.openNpc(1091000);
            break;
        case 23://武陵道场商店
            cm.dispose();
            cm.openShop(304);
            //cm.openNpc(9070001);
            break;
        case 24://黑魔法师商店
            cm.dispose();
            cm.openShop(14);
            //cm.openNpc(9070001);
            break;
        case 25://V纪念币
            cm.dispose();
            cm.openShop(9000399);
            //cm.openNpc(9000399);
            break;
        case 26://24小时
            cm.dispose();
            cm.openShop(19);
            break;
        case 27://低级贝勒
            cm.dispose();
            cm.openShop(1400002);
 
            break;
                        case 10086:
                                cm.dispose();
            cm.openNpc(9310074, "41");
                                break;
                                
			case 102:
				cm.dispose();
            cm.openNpc(1540658);
				break;
			case 101:
				cm.dispose();
            cm.openNpc(9310072,"diyong");
				break;
			case 100:
				cm.dispose();
            cm.openNpc(9310072);
				break;
        case 0://杂货商店
            cm.dispose();
            cm.openShop(61);
            break;
        case 1://RED商店
            cm.dispose();
            cm.openShop(69);
            break;
        case 2://11周年装备
            cm.dispose();
            cm.openShop(9071001);
            break;
        case 3://BOSS币店
            cm.dispose();
            cm.openShop(68);
            break;
        case 4://征服币店
            cm.dispose();
            cm.openShop(66);
            break;
        case 5://副手装备
            cm.dispose();
            cm.openShop(63);
            break;
        case 6://漩涡装备
            cm.dispose();
            cm.openShop(74);
            break;
        case 8://低级武器
            cm.dispose();
            cm.openShop(73);
            break;
        case 9://组队点数
            cm.dispose();
            cm.openShop(72);
            break;
        case 10://黑币商店
            cm.dispose();
            cm.openShop(305);
            break;
			  case 10086://金币魔方
            cm.dispose();
            cm.openShop(19);
            break;
        case 11://西服婚纱
            cm.dispose();
            cm.openShop(32);
            break;
        case 16://兔子商人
            cm.dispose();
            cm.openShop(74);
            break;
        }
    }
}

